const mongoose = require("mongoose")

const LikeygoodSchema = mongoose.Schema({
    // 用户id
    userId: {
        type: mongoose.Schema.Types.ObjectId,
        require: true,
        ref: "user"
    },
    // 酒店的id
    hotelId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "hotel"
    },
    // 景点的id
    sightId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "scenic"
    },
    // 美食页的id
    foodId:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "delicacy"
    },
    // 出去嗨的id
    haiId:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "tourism"
    }
    
});

const Likeygood = mongoose.model("likeygood", LikeygoodSchema);

module.exports = Likeygood